<div class="feeds view">
<h2><?php  __('Feed');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $feed['Feed']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Hk User'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($feed['HkUser']['name'], array('controller' => 'hk_users', 'action' => 'view', $feed['HkUser']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Title'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $feed['Feed']['title']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Url'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $feed['Feed']['url']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Hk Category'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($feed['HkCategory']['title'], array('controller' => 'hk_categories', 'action' => 'view', $feed['HkCategory']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Feed', true), array('action' => 'edit', $feed['Feed']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Feed', true), array('action' => 'delete', $feed['Feed']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $feed['Feed']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Feeds', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Feed', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Hk Categories', true), array('controller' => 'hk_categories', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hk Category', true), array('controller' => 'hk_categories', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Hk Users', true), array('controller' => 'hk_users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hk User', true), array('controller' => 'hk_users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Feed Details', true), array('controller' => 'feed_details', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Feed Detail', true), array('controller' => 'feed_details', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Feed Details');?></h3>
	<?php if (!empty($feed['FeedDetail'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Feed Id'); ?></th>
		<th><?php __('Title'); ?></th>
		<th><?php __('Link'); ?></th>
		<th><?php __('Description'); ?></th>
		<th><?php __('Content'); ?></th>
		<th><?php __('Pub Date'); ?></th>
		<th><?php __('Status'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($feed['FeedDetail'] as $feedDetail):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $feedDetail['id'];?></td>
			<td><?php echo $feedDetail['feed_id'];?></td>
			<td><?php echo $feedDetail['title'];?></td>
			<td><?php echo $feedDetail['link'];?></td>
			<td><?php echo $feedDetail['description'];?></td>
			<td><?php echo $feedDetail['content'];?></td>
			<td><?php echo $feedDetail['pub_date'];?></td>
			<td><?php echo $feedDetail['status'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'feed_details', 'action' => 'view', $feedDetail['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'feed_details', 'action' => 'edit', $feedDetail['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'feed_details', 'action' => 'delete', $feedDetail['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $feedDetail['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Feed Detail', true), array('controller' => 'feed_details', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
